package com.easy.slurm.slurm.api;

import com.easy.slurm.slurm.bean.*;
import com.easy.slurm.vo.ResultVo;
import com.jcraft.jsch.JSchException;

import java.io.IOException;
import java.util.List;

/**
 * @author bing.bai
 * @create 2025/6/4
 */
public interface SlurmApi {

    List<SInfo> sinfo() throws JSchException, IOException;

    ResultVo submitSbatchJob(SbatchJobSubmit sbatchJobSubmit) throws JSchException, IOException;

    List<Squeue> squeue() throws JSchException, IOException;

    ResultVo cancel(CancelJobRequest cancelJobRequest) throws JSchException, IOException;

    String scontrol(String jobId) throws JSchException, IOException;

    ResultVo uploadFile(FileUpload fileUpload);
}
